all:threadtest mthread detachthread
mthread:mthread.cpp
	g++ -o $@ $^ -l pthread
threadtest:threadtest.cpp
	g++ -o $@ $^ -l pthread
detachthread:detachthread.cpp
	g++ -o $@ $^ -l pthread
.phony:clean
clean:
	rm threadtest mthread detachthread